Defining Your Own Dialog Item Function
NOT RECOMMENDED WITH THE APPEARANCE MANAGER
When the Appearance Manager is available and an embedding hierarchy is established in a dialog box, you should provide the user pane drawing functionMyUserPaneDrawProc
instead of the user item drawing functionMyUserItemProc
to draw an application-defined control (a dialog item becomes a control in a dialog box with an embedding hierarchy).You can provide other user pane application-defined functions to hit test, track, perform idle processing, handle keyboard, activate, and deactivate event processing, handle keyboard focus, and set the background color or pattern in a user pane control. For examples of how to write these functions, see "Defining Your Own User Pane Functions".